//////////////////////////////////////////////////////////////////////////
// FileName:ucrbRecordScheme
// CreateBy:DragonXiong
// CreateDate:2010-01-14
// Description:
//		RecordScheme List Info usercontrol.
//      
// Modify Log:20100114:Add InitControl() Function To Set Select Nothing --DragonXiong
//	
// Copyright:ASL-MIS
/////////////////////////////////////////////////////////////////////////
using System;
using System.Data;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using Auto.Data.Security;

namespace BaseSystem._System.UserControl
{
    public partial class ucrbRecordScheme : System.Web.UI.UserControl
    {
        public delegate void SelectedEventHandler(string schemeID);
        public event SelectedEventHandler EventSelected;


        protected void OnSelected(string schemeID)
        {
            if (EventSelected != null) { EventSelected(schemeID); }
        }

        public string SelectedValue
        {
            get { return RadioButtonList1.SelectedValue; }
        }
        
        protected void Page_Load(object sender, EventArgs e)
        {
            
        }

        public void InitControl()
        {
            RadioButtonList1.ClearSelection();
        }


        protected void RadioButtonList1_SelectedIndexChanged(object sender, EventArgs e)
        {
            OnSelected(RadioButtonList1.SelectedValue);
        }

    }
}